﻿<UserControl x:Class="WLG.WPFView.NotifyView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:helper="clr-namespace:WLG.WPFView.Helpers" >
    <UserControl.Resources>
        <helper:NotifySummaryTypeConverter x:Key="htmlToXamlConverter"></helper:NotifySummaryTypeConverter>
    </UserControl.Resources>
    <ListBox Width="auto" Name="NotificationList" ScrollViewer.HorizontalScrollBarVisibility="Disabled" ScrollViewer.VerticalScrollBarVisibility="Auto"   >
        <ListBox.ItemTemplate >
            <DataTemplate>
                <ListBox ScrollViewer.HorizontalScrollBarVisibility="Disabled" Width="auto"
                    ItemsSource="{Binding Path=Summary.SummaryText, Converter={StaticResource htmlToXamlConverter}}" >
                    <ListBox.ItemsPanel>
                        <ItemsPanelTemplate>
                            <WrapPanel FlowDirection="LeftToRight"  Orientation="Horizontal" />
                        </ItemsPanelTemplate>
                    </ListBox.ItemsPanel>
                </ListBox>
            </DataTemplate>
        </ListBox.ItemTemplate>
    </ListBox>
</UserControl>
